package com.fanqiechaodan.templatemethod;

/**
 * @author fanqiechaodan
 * @Classname Demo
 * @Description 模板方法模式
 */
public class Demo {

    public static void main(String[] args) {
        CoffeeMaker americanoMaker = new AmericanoMaker();
        americanoMaker.makeCoffee();
        System.out.println();
        CoffeeMaker latteMaker = new LatteMaker();
        latteMaker.makeCoffee();
    }
}
